package presenters.component

class TagsComponent {

    def namespace = "gp"

    def tagsAsLinks = { tags ->
        builder.ul {
            tags.each {tag ->
                li {
                    gp.anchor(controller:"post", action:"listByTag", id:"${tag.name}"){tag.name}
                }
            }
        }
    }

}